package com.ekalenchuk.module.dto.article;

import java.io.Serializable;

import javax.validation.constraints.Size;

import org.hibernate.validator.constraints.NotEmpty;

public class ArticleDTO implements Serializable {

	private static final long serialVersionUID = 6457082562124370363L;

	@NotEmpty(message="NotEmpty.manageArticle.title")
	@Size(max=255, message="Size.manageArticle.title")
	private String title;
	
	@NotEmpty(message="NotEmpty.manageArticle.text")
	private String text;

	@Size(max=255, message="Size.manageArticle.tags")
	private String tags;

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getText() {
		return text;
	}

	public void setText(String text) {
		this.text = text;
	}

	public String getTags() {
		return tags;
	}

	public void setTags(String tags) {
		this.tags = tags;
	}

}
